package com.px.tc_ip;

import java.io.IOException;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;

public class ClimentDemo {
    public static void main(String[] args) {
        try {
            Scanner scanner=new Scanner(System.in);
            String jjj=scanner.next();
            Socket socket=new Socket("192.168.102.76",583);
            System.out.println("客户端启动");
            PrintWriter out=new PrintWriter(socket.getOutputStream());
            out.write(jjj+"\n");
            out.flush();

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
